function OrderListAssistant(argFromPusher) {
}

OrderListAssistant.prototype = {
	setup: function() {
		Ares.setupSceneAssistant(this);
		drupalService('uc_order.getOrdersByUid', {uid: user.uid}, this, function(data) {
			data.each(function(d){
				d.order_status = orderStatuses.filter(function(v){
					return v.order_status_id == d.order_status;
				})[0].title;
				d.createdStr = new Date(parseInt(d.created)*1000).toString().substring(4,24);
				if(showPrice(user))
					d.totalStr = "$"+parseFloat(d.order_total).toFixed(2);
			});
			this.$.list1.setItems(data);
		});
	},
	cleanup: function() {
		Ares.cleanupSceneAssistant(this);
	},
	list1Listtap: function(inSender, event) {
		Mojo.Controller.stageController.pushScene("orderDetail",{order: event.item});
	}
};